package SourceCode;

import java.util.ArrayList;
import java.util.List;


public class ArrayListSourceCode {
    public static void main(String[] args) {
        List list = new ArrayList(3);
        list.add(1);
        list.add(3);
        list.add(5);
        //测试set方法的返回值
        System.out.println(list.set(1, 6));
        System.out.println(list.get(2));
        System.out.println(list.remove(1));
        System.out.println(list);
    }
}
